package com.xxxx.comment.entity.dto;

import com.xxxx.comment.constants.ValidationConstants;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Data
public class LoginFormDTO
{
    @Length(min = 11, max = 11, message = ValidationConstants.PHONE_ERR)
    private String phone;

    private String code;

    @Length(min = 6, max = 20, message = ValidationConstants.PASSWORD_ERR)
    private String password;
}
